<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<?php  $data['leftnav']=2;$this->load->view('admin/header.html',$data)?>
<div id="dcMain">
    <!-- 当前位置 -->
    <div id="urHere">
        DouPHP 管理中心
        <b>></b>
       
        <strong>内容管理</strong>
    </div>
    <div id="manager" class="mainBox" style="height:auto!important;height:550px;min-height:550px;">
        <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
            <tr>
                <th width="30" align="center">编号</th>
                <th align="left">栏目名称</th>
                <th align="center">操作</th>
            </tr>
            <?php foreach($navList as $menuItem):?>
            <tr>
                <td align="center"><?php echo $menuItem->mid;?></td>
                <td><?php if($menuItem->mlevel>2){for($i=0;$i<$menuItem->mlevel;$i++){echo('&nbsp;&nbsp;');}echo('|-');}?><?php echo $menuItem->mtitle;?></td>
               
                <td align="center">
                    <a href="<?php echo site_url('admin/menu/menulist')?>">栏目管理</a>
                    <?php if($menuItem->mchild<1){
                    echo '|<a href="'.site_url("admin/".$menuItem->mctrl."/".$menuItem->mact."/".$menuItem->mid).'">内容管理</a>';
                    }?>
                </td>
            </tr>
            <?php endforeach; ?>
        </table>
        <div class='page'>
            <!--<?php echo $links?>-->
        </div>
    </div>
</div>